package com.shop.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (Message)表实体类
 *
 * @author makejava
 * @since 2020-11-21 10:31:05
 */
@Data
@NoArgsConstructor
public class Message extends Model<Message> {

    private Integer id;
    //消息提供
    private String provider;
    //消息消费
    private String consumer;

    private String role;
    //消息类型
    private String type;
    //消息内容
    private String content;
    //消息代码
    private String code;
    //返回消息代码
    private String reCode;
    //数据
    private String data;

    private Date createTime;

    private Date updateTime;

    private Integer createId;

    private Integer updateId;

    private String isDelete;

    private String status;

    private String statusOne;

    private String statusTwo;

    private Integer version;

    private String merchantId;

    public Message(String data, String merchantId) {
        this.data = data;
        this.merchantId = merchantId;
    }
}
